package com.example.springboot.utils.springutils;

import org.springframework.web.util.HtmlUtils;

import java.io.Serializable;

/**
 * @author chenzhangkun
 * @ClassName HtmlUtilDemo
 * @description: TODO
 * @date 2024年02月02日
 */
public class HtmlUtilDemo {

    public static void main(String[] args) {
        String specialStr = "<div id=testDiv>test1;test2</div>";

        String htmlEscape = HtmlUtils.htmlEscape(specialStr);

        System.out.println(htmlEscape);

    }


}
